package tempEngine.network.protocols.enums;

public enum RoleAnswer {
	OK("OK"), NOFREESLOT("NO_FREE_SLOT"), WRONG_ASW("error ... ");
	private String _label;
	private RoleAnswer(String str){
		_label = str;
	}
	public String label(){
		return _label;
	}
	
	public static RoleAnswer factory(String s){
		RoleAnswer answer = WRONG_ASW;
		if(s.equals(OK._label)){
			answer = OK;
		}else if(s.equals(NOFREESLOT._label)){
			answer = NOFREESLOT;
		}
		return answer;
	}
}
